package com.umeng.analytics.pro;

public final class ds extends dt {
    private byte[] a;
    private int b;
    private int c;

    public ds() {

    }

    public ds(byte[] arg1) {

        this.a(arg1);
    }

    public ds(byte[] arg1, int arg2, int arg3) {

        this.c(arg1, arg2, arg3);
    }

    public final void a(byte[] arg3) {
        this.c(arg3, 0, arg3.length);
    }

    public final int a(byte[] arg3, int arg4, int arg5) throws du {
        int v0 = this.h();
        if(arg5 > v0) {
            arg5 = v0;
        }

        if(arg5 > 0) {
            System.arraycopy(this.a, this.b, arg3, arg4, arg5);
            this.a(arg5);
        }

        return arg5;
    }

    public final void a(int arg2) {
        this.b += arg2;
    }

    public final boolean a() {
        return true;
    }

    public final void b() throws du {
    }

    public final void b(byte[] arg3, int arg4, int arg5) throws du {
        throw new UnsupportedOperationException("No writing allowed!");
    }

    public final void c(byte[] arg2, int arg3, int arg4) {
        this.a = arg2;
        this.b = arg3;
        this.c = arg3 + arg4;
    }

    public final void c() {
    }

    public final void e() {
        this.a = null;
    }

    public final byte[] f() {
        return this.a;
    }

    public final int g() {
        return this.b;
    }

    public final int h() {
        return this.c - this.b;
    }
}

